package com.dingup.homework.bean.DO;

import com.alibaba.fastjson.JSON;
import com.dingup.homework.bean.HomeworkQuestion;
import com.dingup.homework.enums.HomeworkStatusEnum;

import java.util.Date;
import java.util.List;

/**
 * @author jun 2018/11/8.
 */
public class HwHomeworkDO {
    private Integer id;
    private String homeworkName;
    private Integer classId;
    private List<String> studentIds;
    private String createUserId;
    private List<HomeworkQuestion> questionList;
    private Date createTime;
    private HomeworkStatusEnum homeworkStatus;
    private Date modifyTime;
    private Date expiredTime;
    private Date assignTime;
    private CorrectTeacher correctTeacher;
    private Boolean ifSubjective;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHomeworkName() {
        return homeworkName;
    }

    public void setHomeworkName(String homeworkName) {
        this.homeworkName = homeworkName;
    }

    public List<String> getStudentIds() {
        return studentIds;
    }

    public void setStudentIds(List<String> studentIds) {
        this.studentIds = studentIds;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public List<HomeworkQuestion> getQuestionList() {
        return questionList;
    }

    public void setQuestionList(List<HomeworkQuestion> questionList) {
        this.questionList = questionList;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Date getAssignTime() {
        return assignTime;
    }

    public void setAssignTime(Date assignTime) {
        this.assignTime = assignTime;
    }

    public HomeworkStatusEnum getHomeworkStatus() {
        return homeworkStatus;
    }

    public void setHomeworkStatus(HomeworkStatusEnum homeworkStatus) {
        this.homeworkStatus = homeworkStatus;
    }

    public CorrectTeacher getCorrectTeacher() {
        return correctTeacher;
    }

    public void setCorrectTeacher(CorrectTeacher correctTeacher) {
        this.correctTeacher = correctTeacher;
    }

    public Boolean getIfSubjective() {
        return ifSubjective;
    }

    public void setIfSubjective(Boolean ifSubjective) {
        this.ifSubjective = ifSubjective;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
